from sqlalchemy import Column, DateTime, Float, Integer, String
from database.db_init import Base


class Plot(Base):
    __tablename__ = "Plot"
    ID = Column(Integer, primary_key=True, index=True)
    Name = Column(String, unique=False)
    Area = Column(Float, unique=False)
    Crop = Column(String, unique=False)
    PlantingDate = Column(DateTime, unique=False)
    GrowthStage = Column(String, unique=False)
    FarmID = Column(Integer, unique=False)
    LesseeID = Column(Integer, unique=False)
